import styles from './index.module.scss'
import { useOffsetScrolling } from '@/utils/hooks'

const Index = props => {
  const { data, onClose } = props
  useOffsetScrolling()
  return (
    <div className={styles.mask}>
      <div className={styles.content}>
        <div className={styles.title}>
          {data.eporder} {data.videoName}
        </div>
        <p className={styles.overview}>{data.overView}</p>
        <img src="/images/download_close.png" alt="关闭" className={styles.close} onClick={onClose} />
      </div>
    </div>
  )
}
export default Index
